package tgc.edu.tms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.tms.custom.CommonService;
import tgc.edu.tms.entity.Jcb;
import tgc.edu.tms.repository.JcbRepository;
@Service
public class JcbService extends CommonService<Jcb, Integer>{
	@Autowired
	private JcbRepository jcbDAO;

	public Jcb findByXqAndJcsj(String weekDay, String section) {
		return jcbDAO.findByXqAndJcsj(weekDay,section);
	}

	public List<Jcb> findBySkxq(String skxq) {
		return jcbDAO.findByXq(skxq);
	}

	public List<String> findAllXq() {
		return jcbDAO.findAllXq();
		
	}
}
